package com.pxmeta.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxmeta.chat.entity.ChatGroupApply;
import com.pxmeta.chat.entity.vo.ChatGroupApplyDetailVO;

import java.util.List;

public interface IChatGroupApplyService extends IService<ChatGroupApply> {

    /**
     * 申请加入群聊
     * @param userId 申请人id
     * @param chatGroupId
     * @param reason
     */
    void joinGroup(Long userId, Long chatGroupId, String reason);

    /**
     * 获取申请列表
     * @return
     */
    List<ChatGroupApplyDetailVO>  getApplyList(Long chatGroupId,Integer page, Integer size);


    /**
     * 获取申请数
     * @param chatGroupId
     * @return
     */
    Integer getApplyCount(Long chatGroupId);


    /**
     * 申请加入审核
     * @param id
     * @param status
     */
    void verify(Long id, Integer status);
}
